class Comp:
    def __init__(self,a,b,c):
        self.a = a
        self.b = b
        self.c = c
        self.u = self.u()
        self.v = self.v()
        self.j = self.j()

    def u(self):
        return self.b*self.c

    def v(self):
        return self.u+self.a

    def j(self):
        return self.v*3
    
comp1 = Comp(5,3,2)
comp2 = Comp(5.001,3,2)

print(comp2.j,comp1.j)
print(comp2.j-comp1.j)
print((comp2.j-comp1.j)/0.001)